package com.thero.core.command;

import java.lang.reflect.Method;

/**
 * Created by wusk on 2017/11/29.
 * 处理器方法
 */
public class HandlerMethod {

    /**
     * 该方法处理的命令字
     */
    private short cmd;

    /**
     * 方法所在的对象实例
     */
    private Class clazz;


    /**
     * 命令字处理器方法
     */
    private Method method;

    public HandlerMethod(short cmd, Class clazz, Method method){
        this.cmd = cmd;
        this.clazz = clazz;
        this.method = method;
    }

    public short getCmd() {
        return cmd;
    }

    public Class getClazz() {
        return clazz;
    }

    public Method getMethod() {
        return method;
    }
}
